package com.bookmanagement;// Spring Boot 应用的入口类，负责启动整个应急科普图书管理系统

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableScheduling
@SpringBootApplication
public class LibaraySpringbootApplication {

    public static void main(String[] args) {
        SpringApplication.run(LibaraySpringbootApplication.class, args);

        try { // 执行cmd命令：启动浏览器并访问本地8080端口（系统默认端口）
            Runtime.getRuntime().exec("cmd  /c start http://localhost:8080");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

}
